package com.huicoo.forestmanager.network.bean.patrol;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * 上报坐标实体
 */
public class ReportPointEntity {
    private String latitude;
    private String longitude;
    private String UUID;
    private String time;
    private String distance;

    public ReportPointEntity(String latitude, String longitude, String UUID) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.UUID = UUID;
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
        this.time = format.format(new Date());
    }

    public ReportPointEntity(String latitude, String longitude, String UUID, String distance) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.UUID = UUID;
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
        this.time = format.format(new Date());
        this.distance = distance;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getUUID() {
        return UUID;
    }

    public void setUUID(String UUID) {
        this.UUID = UUID;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
